.class Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;
.super Ljava/io/OutputStream;
.source "OldSFtpFileSystem.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "c"
.end annotation


# instance fields
.field private a:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

.field private b:Ljava/io/OutputStream;

.field private c:Ljava/lang/String;

.field private d:Ljava/lang/String;

.field private e:Ljava/lang/String;

.field private f:Z


# direct methods
.method public constructor <init>(Ljava/io/OutputStream;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->b:Ljava/io/OutputStream;

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->f:Z

    .line 4
    iput-object p1, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->b:Ljava/io/OutputStream;

    .line 5
    iput-object p2, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->a:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    .line 6
    iput-object p3, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->c:Ljava/lang/String;

    iput-object p4, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->d:Ljava/lang/String;

    iput-object p5, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->e:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public close()V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->b:Ljava/io/OutputStream;

    invoke-virtual {v0}, Ljava/io/OutputStream;->close()V

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->f:Z

    if-nez v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->c:Ljava/lang/String;

    iget-object v1, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->d:Ljava/lang/String;

    iget-object v2, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->e:Ljava/lang/String;

    iget-object v3, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->a:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    invoke-static {v0, v1, v2, v3}, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;)V

    return-void

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->a:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    iget-object v0, v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v0}, Lcom/jcraft/jsch/ChannelSftp;->b()V

    .line 5
    iget-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->a:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    iget-object v0, v0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;

    invoke-virtual {v0}, Lcom/jcraft/jsch/Session;->a()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    return-void

    :catch_0
    move-exception v0

    .line 6
    iget-object v1, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->a:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    iget-object v1, v1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->b:Lcom/jcraft/jsch/ChannelSftp;

    invoke-virtual {v1}, Lcom/jcraft/jsch/ChannelSftp;->b()V

    .line 7
    iget-object v1, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->a:Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;

    iget-object v1, v1, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$d;->a:Lcom/jcraft/jsch/Session;

    invoke-virtual {v1}, Lcom/jcraft/jsch/Session;->a()V

    .line 8
    throw v0
.end method

.method public flush()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->b:Ljava/io/OutputStream;

    invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    return-void

    :catch_0
    move-exception v0

    const/4 v1, 0x1

    .line 2
    iput-boolean v1, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->f:Z

    .line 3
    throw v0
.end method

.method public write(I)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 7
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->b:Ljava/io/OutputStream;

    invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write(I)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    return-void

    :catch_0
    move-exception p1

    const/4 v0, 0x1

    .line 8
    iput-boolean v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->f:Z

    .line 9
    throw p1
.end method

.method public write([B)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 4
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->b:Ljava/io/OutputStream;

    invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write([B)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    return-void

    :catch_0
    move-exception p1

    const/4 v0, 0x1

    .line 5
    iput-boolean v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->f:Z

    .line 6
    throw p1
.end method

.method public write([BII)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->b:Ljava/io/OutputStream;

    invoke-virtual {v0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    return-void

    :catch_0
    move-exception p1

    const/4 p2, 0x1

    .line 2
    iput-boolean p2, p0, Lcom/estrongs/old/fs/impl/sftp/OldSFtpFileSystem$c;->f:Z

    .line 3
    throw p1
.end method
